home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programmer Power Tools
/
Programmer Power Tools.iso
/
math
/
praxis.arc
/
TP.C
< prev
next >
Wrap
C/C++ Source or Header
|
1987-07-15
|
415b
|
24 lines
#include <math.h>
#include "machine.h"
extern double rosen();
extern double praxis();
extern double tol;
extern int prin, maxfun;
main()
{
double x[N];
double fx;
int n;
x[0] = -1.2;
x[1] = 1.0;
n = 2;
tol = 1.0e-20;
printf("print parameter: ");
scanf("%d", &prin);
fx = praxis(rosen, x, n);
printf("Minimum = %e at point %e,%e\n", fx, x[0], x[1]);
}